# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=scip
pkgver=8.0.4
pkgrel=1
pkgdesc='Solving Constraint Integer Programs'
arch=(loong64 x86_64)
url='https://www.scipopt.org/'
license=(Apache)
depends=(tbb mpfr)
makedepends=(cmake boost soplex papilo)
source=(https://github.com/scipopt/scip/archive/v${pkgver//./}/$pkgname-$pkgver.tar.gz)
sha256sums=('48be3f568763e3fc209803e9426389df107491371cfcce38f73dcc99ede69a51')

build() {
  cmake -B build -S $pkgname-${pkgver//./} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DAUTOBUILD=ON
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
